﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:TableTop.Presentation.Controls">
    
    <Style TargetType="{x:Type NavigationWindow}" x:Key="MainWindowStyle">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type NavigationWindow}">
                        <!-- Background="Black"> -->
                    <Grid x:Name="LayoutRoot"                               
                              Background="LightBlue">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="50" />
                            <RowDefinition />
                        </Grid.RowDefinitions>

                        <Grid Grid.Row="0">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="0.507*"/>
                                    <RowDefinition Height="0.493*"/>
                                </Grid.RowDefinitions>
                                <Border Opacity="0" HorizontalAlignment="Stretch" x:Name="glow" 
                                        Width="Auto" 
                                        Grid.RowSpan="2" CornerRadius="4,4,4,4">
                                    <Border.Background>
                                        <RadialGradientBrush>
                                            <RadialGradientBrush.RelativeTransform>
                                                <TransformGroup>
                                                    <ScaleTransform ScaleX="1.702" ScaleY="2.243"/>
                                                    <SkewTransform AngleX="0" AngleY="0"/>
                                                    <RotateTransform Angle="0"/>
                                                    <TranslateTransform X="-0.368" Y="-0.152"/>
                                                </TransformGroup>
                                            </RadialGradientBrush.RelativeTransform>
                                            <GradientStop Color="#B28DBDFF" Offset="0"/>
                                            <GradientStop Color="#008DBDFF" Offset="1"/>
                                        </RadialGradientBrush>
                                    </Border.Background>
                                </Border>
                                        
                                <!-- ContentGrid -->
                                        
                                <Grid Grid.RowSpan="2"
                                      HorizontalAlignment="Left" VerticalAlignment="Center" Width="Auto" >
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>

                                    <StackPanel Grid.Column="0" Orientation="Horizontal" Margin="5,0,10,0"
                                                VerticalAlignment="Center">
                                        <Image Width="48" 
                                               Height="48" 
                                               VerticalAlignment="Center" 
                                               Source="../Images/Icons/wow_rpg.png"/>
                                        <StackPanel VerticalAlignment="Center">
                                            <TextBlock Foreground="White" 
                                                       Text="TableTop .NET" 
                                                       VerticalAlignment="Center"/>
                                            <TextBlock Foreground="Gray" 
                                                       Text="A virtual table for playing RPG" 
                                                       VerticalAlignment="Center"/>
                                        </StackPanel>

                                    </StackPanel>

                                    <StackPanel Grid.Column="1" Orientation="Horizontal"                                                 
                                                HorizontalAlignment="Left" 
                                                VerticalAlignment="Center">
                                        <Button Width="Auto" Height="20" Margin="5,0,5,0" 
                                                VerticalAlignment="Center" 
                                                HorizontalAlignment="Left"
                                                Style="{StaticResource BlueArrowButtonLeftNoShadow}"
                                                Command="BrowseBack">
                                        </Button>
                                        <Button Width="Auto" Height="20" Margin="5,0,5,0" 
                                                VerticalAlignment="Center"
                                                Style="{StaticResource BlueArrowButtonRightNoShadow}"
                                                HorizontalAlignment="Left"
                                                Command="BrowseForward">
                                        </Button>
                                        <local:GlassButton Margin="5,0,5,0" 
                                                           Width="Auto"
                                                           Height="20"
                                                           VerticalAlignment="Center"
                                                           Content="Home"
                                                           x:Name="btnHomeButton" />
                                    </StackPanel>
                                    
                                    <StackPanel Grid.Column="2" Orientation="Horizontal" 
                                                HorizontalAlignment="Right"
                                                VerticalAlignment="Center">
                                        <local:GlassButton Width="Auto" 
                                                           Height="20"
                                                           Content="Play online"
                                                           VerticalAlignment="Center"
                                                           x:Name="bthPlayOnline"
                                                           ToolTip="Connect to another player, or host a game via the network" />
                                    </StackPanel>
                                </Grid>                               
                                
                                        
                                <Border HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="shine" Width="Auto" CornerRadius="4,4,0,0">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.494,0.889" StartPoint="0.494,0.028">
                                            <GradientStop Color="#99FFFFFF" Offset="0"/>
                                            <GradientStop Color="#33FFFFFF" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                </Border>
                            </Grid>
                        </Grid>
                        <Border BorderThickness="1" BorderBrush="Gray" Margin="5" Grid.Row="1">
                            <Border.Background>
                                <ImageBrush ImageSource="../Images/Textures/metal_texture.jpg" Opacity="0.25"/>
                            </Border.Background>
                            <Grid Margin="4">
                                <ContentPresenter Name="PART_NavWinCP" ClipToBounds="True" />
                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ShowsNavigationUI" Value="False" />
    </Style>
    
</ResourceDictionary>